Euclidean algorithm in Cryptography and network security